#ifndef CONTROLLERVIEW_H
#define CONTROLLERVIEW_H
#include <QQuickView>
#include <QObject>
#include "ddframelesshelper.h"

/**
 * 登陆后的自动下载控制视图
 * @brief The ControllerView class
 * @anchor Onion
 */
class ControllerView: public QQuickView
{
Q_OBJECT
public:
    explicit ControllerView(QQuickView *parent = nullptr);
public slots:
    void setSourceAndRegsiterObj(const QUrl &url, bool regsiter=true);

private:
    QObject *contrs{nullptr};
    bool isMax{false};
    DDFramelessHelper *contrHelper{nullptr};
};

#endif // CONTROLLERVIEW_H
